const router = require('koa-router')()
const FileStorage = require('../controller/fileStorage')
const fileStorageController = new FileStorage()

router.post('/upload/icon', fileStorageController.uploadIcon())
router.post('/upload/background', fileStorageController.uploadBackground())
router.post('/upload/editor/image', fileStorageController.uploadEditorFile('image'))
router.post('/upload/editor/audio', fileStorageController.uploadEditorFile('audio'))
router.post('/upload/editor/video', fileStorageController.uploadEditorFile('video'))

module.exports = router
